<script setup>
import { ref, onMounted } from 'vue'
const count = ref(0)
function increment() {
  count.value++
}

onMounted(() => {
  console.log('mounted')
})
</script> 

<template>
  <button @click="increment">count is: {{ count }}</button>
</template>